package ltd.bugs.cute.urm.model;

import java.io.Serializable;

import org.apache.ibatis.type.Alias;

/**
 * 菜单
 * 
 * @author zhengzhq
 *
 */
@Alias("Menu")
public class Menu implements Serializable {

  private static final long serialVersionUID = 5581201521130770529L;
  // 主键
  private long id;
  // 菜单名称
  private String name;
  // 菜单描述信息
  private String desc;
  // 父级菜单名称
  private long parentId;
  // icon的样式
  private String iconCls;
  // 当前菜单打开界面的url
  private String pageUrl;
  // url匹配模式，url的正则
  private String urlPattern;
  // 排序
  private int order;
  // 扩展字段，在easy UI的前端框架中可用于存放打开的tab名称
  private String extra;

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public long getParentId() {
    return parentId;
  }

  public void setParentId(long parentId) {
    this.parentId = parentId;
  }

  public int getOrder() {
    return order;
  }

  public void setOrder(int order) {
    this.order = order;
  }

  public String getExtra() {
    return extra;
  }

  public void setExtra(String extra) {
    this.extra = extra;
  }

  public String getDesc() {
    return desc;
  }

  public void setDesc(String desc) {
    this.desc = desc;
  }

  public String getUrlPattern() {
    return urlPattern;
  }

  public void setUrlPattern(String urlPattern) {
    this.urlPattern = urlPattern;
  }

  public String getIconCls() {
    return iconCls;
  }

  public void setIconCls(String iconCls) {
    this.iconCls = iconCls;
  }

  public String getPageUrl() {
    return pageUrl;
  }

  public void setPageUrl(String pageUrl) {
    this.pageUrl = pageUrl;
  }
}
